package com.lightjet.macross.base.awf.repository;

import com.lightjet.macross.base.awf.domain.BizFormIndex;
import com.lightjet.macross.common.core.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: lijia
 * @version:1.0 2019-02-15 16:42
 * description: 流程表单索引表数据层接口
 */

@Repository("bizFormIndexRepository")
public interface BizFormIndexRepository extends BaseRepository<BizFormIndex,Integer> {
    List<BizFormIndex> findByProcinstdefIdOrderBySort(String id);

    /** description:分组获取流程定义集合  */
    @Query("select t.procinstdefId from BizFormIndex t group by t.procinstdefId")
    List<String> findProcinstDefIdGroup();

}
